function GLD5000JournalPeriodRenderer(v,r,n){    
    return r.get('PERIOD_YEAR')+'-'+r.get('PERIOD_NUM')
}

function GLD5000JournalTypeRenderer(v,r,n){    
    return r.get('JOURNAL_TYPE_NAME') + '-' + r.get('JOURNAL_TYPE_NUM');
}
function GLD5000JournalDetailRenderer(r,name,isAmount){
    var html = [],lines = r.get('lines');
    if(lines){
        for(var i=0;i<lines.length;i++){
            var line = lines[i],val = line[name];
            if(isAmount) val = Spark.moneyRenderer(val);
            html.push('<p ' + (i==(lines.length-1) ? '' : 'class="pline" ')+ '>'+(val||'')+'</p>')
        }
    }
    return html.join('')
}
function GLD5000JournalDescriptionRenderer(v,r,n){
    return GLD5000JournalDetailRenderer(r,'DESCRIPTION');
}
function GLD5000JournalAccountRenderer(v,r,n){
    return GLD5000JournalDetailRenderer(r,'ACCOUNT_NAME');
}
function GLD5000JournalAmountDRRenderer(v,r,n){
    return GLD5000JournalDetailRenderer(r,'AMOUNT_DR',true);
}
function GLD5000JournalAmountCRRenderer(v,r,n){
    return GLD5000JournalDetailRenderer(r,'AMOUNT_CR',true);
}